<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  <meta name="theme-color" content="#000000">
  <title>Mirador</title>
  <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500">
</head>
<body>
  <div id="mirador" style="position: absolute; top: 0; bottom: 0; left: 0; right: 0;"></div>
  <script> const global = globalThis; </script>
  <script type="module">
    import Mirador from '../../../src';
    import annotationPlugins from '../../../src/annotation';
    import LocalStorageAdapter from '../../../src/LocalStorageAdapter';
    // import AnnototAdapter from '../../src/AnnototAdapter';
    import config from './mirador-configs/index.js';

    Mirador.viewer({
      annotation: {
        adapter: (canvasId) => new LocalStorageAdapter(`localStorage://?canvasId=${canvasId}`),
        // adapter: (canvasId) => new AnnototAdapter(canvasId, endpointUrl),
        exportLocalStorageAnnotations: false, // display annotation JSON export button
      },
      // catalog: [
      //   { manifestId: 'https://iiif.bodleian.ox.ac.uk/iiif/manifest/e32a277e-91e2-4a6d-8ba6-cc4bad230410.json' },
      //   { manifestId: 'https://iiif.harvardartmuseums.org/manifests/object/299843' },
      //   { manifestId: 'https://media.nga.gov/public/manifests/nga_highlights.json', provider: 'National Gallery of Art' },
      //   { manifestId: 'https://data.ucd.ie/api/img/manifests/ucdlib:33064', provider: 'Irish Architectural Archive' },
      //   { manifestId: 'https://wellcomelibrary.org/iiif/b18035723/manifest', provider: 'Wellcome Library' },
      //   { manifestId: 'https://demos.biblissima.fr/iiif/metadata/florus-dispersus/manifest.json', provider: 'Biblissima' },
      //   { manifestId: 'https://www.e-codices.unifr.ch/metadata/iiif/gau-Fragment/manifest.json', provider: 'e-codices - Virtual Manuscript Library of Switzerland' },
      //   { manifestId: 'https://wellcomelibrary.org/iiif/collection/b18031511', provider: 'Wellcome Library' },
      //   { manifestId: 'https://gallica.bnf.fr/iiif/ark:/12148/btv1b10022508f/manifest.json', provider: 'Bibliothèque nationale de France' },
      //   { manifestId: 'https://manifests.britishart.yale.edu/Osbornfa1', provider: 'Beinecke Rare Book and Manuscript Library, Yale University' },
      //   { manifestId: 'https://iiif.biblissima.fr/chateauroux/B360446201_MS0005/manifest.json', provider: 'Biblissima' },
      //   { manifestId: 'https://iiif.durham.ac.uk/manifests/trifle/32150/t1/m4/q7/t1m4q77fr328/manifest', provider: 'Durham University Library' },
      //   { manifestId: 'https://zavicajna.digitalna.rs/iiif/api/presentation/3/96571949-03d6-478e-ab44-a2d5ad68f935%252F00000001%252Fostalo01%252F00000071/manifest', provider: "Библиотека 'Милутин Бојић'" },
      // ],
      id: 'mirador',
      // theme: {
      //   transitions: {},
      // },
      window: {
        defaultSideBarPanel: 'annotations',
        sideBarOpenByDefault: true,
      },
      windows: [{
        loadedManifest: 'https://iiif.durham.ac.uk/manifests/trifle/32150/t1/m4/q7/t1m4q77fr328/manifest',
      }],
    },[...annotationPlugins]);
  </script>
</body>

</html>

<!--<!DOCTYPE html>-->
<!--<html lang="en">-->

<!--<head>-->
<!--  <meta charset="utf-8">-->
<!--  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">-->
<!--  <meta name="theme-color" content="#000000">-->
<!--  <title>Mirador</title>-->
<!--  <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500">-->
<!--</head>-->
<!--<body>-->
<!--<div id="mirador" style="position: absolute; top: 0; bottom: 0; left: 0; right: 0;"></div>-->
<!--<script> const global = globalThis; </script>-->
<!--<script type="module">-->
<!--  import Mirador from '../../../src';-->
<!--  import annotationPlugins from '../../../src/annotation';-->
<!--  import LocalStorageAdapter from '../../../src/LocalStorageAdapter';-->
<!--  // import AnnototAdapter from '../../src/AnnototAdapter';-->
<!--  import config from './mirador-configs/index.js';-->
<!--  // import annotationPlugins from 'mirador-annotations';-->
<!--  Mirador.viewer( {-->
<!--    annotation: {-->
<!--      adapter: (canvasId) => new LocalStorageAdapter(`localStorage://?canvasId=${canvasId}`),-->
<!--      // adapter: (canvasId) => new AnnototAdapter(canvasId, endpointUrl),-->
<!--      exportLocalStorageAnnotations: false, // display annotation JSON export button-->
<!--    },-->
<!--    id: 'demo',-->
<!--    window: {-->
<!--      defaultSideBarPanel: 'annotations',-->
<!--      sideBarOpenByDefault: true,-->
<!--    },-->
<!--    windows: [{-->
<!--      loadedManifest: 'https://iiif.harvardartmuseums.org/manifests/object/299843',-->
<!--    }],-->
<!--  },[...annotationPlugins]);-->
<!--</script>-->
<!--</body>-->

<!--</html>-->